<%try{ %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/displaytag.tld" prefix="displayTag"%>
<%@ page import = "com.app.sgd.util.SessionConstants" %>
<%@ page import = "com.app.sgd.util.Constants" %>
<%@ page import = "java.util.*" %>
<%@ page import = "com.app.sgd.model.bean.ExpedienteSTDBean" %>

<%ArrayList<ExpedienteSTDBean> lstTotal = (ArrayList<ExpedienteSTDBean>)session.getAttribute(SessionConstants.LISTA_EXPEDIENTES_MOSTRAR); 
  if(lstTotal == null) lstTotal = new ArrayList<ExpedienteSTDBean>();
%>

<html:html>
<script language="JavaScript" src="<%=request.getContextPath()%>/jscript/javascript.js"></script>
<script language="JavaScript" src="<%=request.getContextPath()%>/jscript/validar.js"></script>
<script language="JavaScript" src="<%=request.getContextPath()%>/jscript/checksValida.js"></script>
<script language="JavaScript" src="<%=request.getContextPath()%>/jscript/expediente_js.js"></script>

<BODY>

<html:form styleId="form" action="Expediente.do" method="post" scope="session">
	<input type="hidden" name="method" value=""/>
	<input type="hidden" name="index" value="-1"/>

	
<table id="tabla1" border=0 style="Z-INDEX:102;TOP:5px;top:0;" align="center" width="100%">
<tr>	
<td valign=top align=left colspan="10">
	<TABLE align="center" width="100%">
		<TR>
		<TD align="center">
			<TABLE width="100%" class="search" cellspacing="0" cellpadding="0" align="center">
				<caption>LISTADO DE EXPEDIENTES</caption>
			</TABLE>
		</TD>
		</TR>
	</TABLE>
</td>
</tr>
<logic:notEmpty name="<%=SessionConstants.LISTA_EXPEDIENTES_MOSTRAR%>" scope="session">
<tr>
	<td align="right"><font face="Arial" size="2"><b><%=lstTotal.size()%> expediente(s)</b></font>&nbsp;&nbsp;&nbsp;</td>
</tr>
</logic:notEmpty>
<tr>
<td>
	<logic:present name="<%=SessionConstants.LISTA_EXPEDIENTES_MOSTRAR%>" scope="session">
		<displayTag:table title=""  name="<%=SessionConstants.LISTA_EXPEDIENTES_MOSTRAR%>" 
					  requestURI="Expediente.do?method=siguiente" summary="true"
					  scope="session" pagesize="<%=Constants.DISPLAYTAG_TABLE_PAGE_SIZE%>" id="expediente" width = "100%">
			
			
			<displayTag:column title="Numero" width="10%" align="center">
				<bean:write name="expediente" property="numeroExpediente"/>
			</displayTag:column>
			
			<displayTag:column title="Oficina" property="siglasArea" width="5%" align="center"/>	
			<displayTag:column title="Descripcion" property="asuntoExpediente" width="20%" align="left"/>
			<displayTag:column title="Fecha" property="fechaExpediente" width="10%" align="center"/>
			<displayTag:column title="Estado" property="descripcionEstado" width="20%" align="center"/>
			
           	<displayTag:column title="Total documentos asociados" width="15%" align="center">
           		<bean:write name="expediente" property="totalDocumentos"/>
           	</displayTag:column>
           	
		</displayTag:table>
	</logic:present>
</td>
</tr>
</table>

</html:form>


</BODY>
</html:html>
<%}catch(Exception e) {e.printStackTrace();}%>